/**
 * Copyright (C) 2012 The SkyTvOS Project
 * <p/>
 * Version     Date           Author
 * ─────────────────────────────────────
 * 2014年12月29日         luwei
 */

package com.coocaa.launcher.sidebar.left;

import android.content.Context;

import com.coocaa.launcher.framework.sidebar.ContainerLayout;
import com.coocaa.launcher.framework.sidebar.ItemContainer;
import com.coocaa.launcher.sidebar.SettingData;
import com.coocaa.launcher.sidebar.left.item.LeftSideItemContainerLayout;

import java.util.ArrayList;
import java.util.List;

public class LeftSideContainer extends ItemContainer {

    private LeftSideContainerLayout mContainerLayout = null;

    public LeftSideContainer(Context context) {
        super(context, "");
    }

    @Override
    public ContainerLayout createLayout() {
        mContainerLayout = new LeftSideItemContainerLayout(mContext);
        return mContainerLayout;
    }

    @Override
    public List<SettingData> getSettingDatas() {
        if (mParseredSetting != null) {
            return mParseredSetting.getLeftSettings();
        }
        return new ArrayList<SettingData>();
    }
}
